
<link  href="/stylesheets/tests.css" type="text/css" rel="stylesheet" media="screen">
<style type="text/css" rel="stylesheet">
    form {
    margin: 0;
    }
    .editor {
    margin-top: 5px;
    margin-bottom: 5px;
    }
    .ke-content {
    font-family: Courier New;
    font-size: 12px;
    background-color: #ffffff;
}

  </style>
    <script type="text/javascript" charset="utf-8" src="/kindeditor/kindeditor.js"></script>
  <script type="text/javascript">
    KE.show({
        id : 'part_description',
        resizeMode :1,
        cssPath : '/kindeditor/examples/index.css',
        items : [
        ]
    });
    KE.show({
        id : 'part_instruction',
        resizeMode :1,
        cssPath : '/kindeditor/examples/index.css',
        items : [
        ]
    });
  </script>
<br/>
<p class="smallNav">
  <%= link_to "专业量表管理", :action => "index"  %>>>
  <%= link_to "编辑量表", :action => "edit", :id => @part.survey  %>>>
  编辑分量表
</p>

<div style="margin: 15px 0 10px 0">
</div>


<% form_for :part, :url => {:action => "update_part"} do |f| %>
  <%= hidden_field_tag "id", @part.id %>
  <p>
    分量表名称:&nbsp;<%= f.text_field :name %>&nbsp;&nbsp;&nbsp;
    <%= link_to "删除", :action => "del_part", :id => @part.id  %>
    <br/>
  </p>biti
  <p>
    说明：<br/>
    <%= f.text_area :description, :style=>"width:600px;height:200px;visibility:hidden;"%>
    <%= f.error_message_on :description  %>
  </p>
  <p>
    指导语：<br/>
    <%= f.text_area :instruction, :style=>"width:600px;height:200px;visibility:hidden;"%>
    <%= f.error_message_on :instruction  %>
  </p>
   <p>
    报告内容配置：<br />
      是否显示总分：
      <select name="part[show_total]" >
       <option value=1 <% if @part.show_total == true %> selected="selected" <% end%>>是</option>
       <option value=0 <%if @part.show_total == false  %> selected="selected" <% end%>>否</option>
       </select>
    是否显示平均分
     <select name="part[show_avg]" >
       <option value=1 <% if @part.show_avg == true %> selected="selected" <% end%>>是</option>
       <option value=0 <% if @part.show_avg == false  %> selected="selected" <% end%>>否</option>
     </select>
  </p>
  <br/>
    <b>总分加权计算方法：</b><br/>
  <p>
    <%= f.text_field :formula %><br/>
    支持加减乘除运算，加：+ &nbsp;&nbsp;减：－&nbsp;&nbsp;乘：*&nbsp;&nbsp;除：/<br/>
    格式：运算符号 + 数字, &nbsp; <br/><font color="#FF0020">不要输入" /0"(除数为0)  ,  所有字符之间都不能有空格，不要用中文输入法输入<br/></font>
    正确输入如：<br/>
    &nbsp;&nbsp;*1.2<br/>
    &nbsp;&nbsp;/2<br/>
    &nbsp;&nbsp;+20
    <br/>
  </p>
<br /></br>
  <%= f.submit "提交" %>
<% end %>

